package com.woniu.mapper;

import com.github.pagehelper.Page;
import com.woniu.entity.dto.CarTypeSearchDTO;
import com.woniu.pojo.CarType;

import java.util.List;

public interface CarTypeMapper {
    Page<CarType> listSearch(CarTypeSearchDTO carTypeSearchDTO);

    Integer save(CarType carType);

    Integer deleteByIds(Long[] ids);

    Integer updateById(CarType carType);

    CarType getById(Long id);

    CarType checkNameExist(String name);

    List<CarType> listAll();
}
